<?php
/**
 * Zend Framework (http://framework.zend.com/)
 *
 * @link      http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
 * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
 * @license   http://framework.zend.com/license/new-bsd New BSD License
 */

namespace Home\Model;

use Zend\Db\TableGateway\TableGateway;

class User
{
   public $id;   
   public $group_id;
   public $email;
   public $password;   
   public $isactive; 
   public $level; 

   public function exchangeArray($data)
   {       
      $this->id         = (!empty($data['id'])) ? $data['id'] : null;      
      $this->email      = (!empty($data['email'])) ? $data['email'] : null;
      $this->password = (!empty($data['password'])) ? $data['password'] : null;
      $this->group_id     = (!empty($data['group_id'])) ? $data['group_id'] : null;
      $this->isactive = (!empty($data['isactive'])) ? $data['isactive'] : null;
      $this->level = (!empty($data['level'])) ? $data['level'] : null;
   }
}
